const Router=require("koa-router");
const router=new Router({
    prefix:"/user"
});

router.get("/",async function(ctx){
    console.log(ctx.state);
    ctx.body={
        state:true,
        msg:"获取登录用户成功",
        user:ctx.state.user
    }
});
module.exports={
    "userRouter": router
};